# [3,5,8,7,2,0] 求列表最小值
a=0
z=[3,5,8,7,2,18]
x=100
while a<len(z):
    if z[a]<x:
        x=z[a]
    a+=1
print(x)